<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>xml 뷰</title>
</head>
<body>


	<table border="1">
		<tr>
			<td>상품이름</td>
			<td>상품이미지</td>
			<td>상품코드</td>
			<td>최소가격</td>
			<td>평균가격</td>
		</tr>
		<?php foreach ($result as $rows){?>
		
		<tr>
			<td>
			<?php echo anchor('productDetailControll/getDetailCode/'.$rows->getCode(), $rows->getName());?>
								
			<td><img src="<?= $rows->getImageURL();?>"></td>
			<td><?= $rows->getCode();?></td>
			<td><?= $rows->getMinPrice();?></td>
			<td><?= $rows->getAvgPrice();?></td>
		
		<?php }?>
		</tr>
	</table>

	<table>
		<tr>
			
		<?php
		
		// 페이지 10개만 뿌려줌
		
		for($a = 1; $a <= 10; $a ++) {
			?>
		<td><?php echo anchor('productControll/index/'.$rows->getLimit().'/'.$a, $a);  ?></td>
			
		<?php }?>
			
		
		</tr>
	</table>






</body>
</html>